-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Pivot filter UI #1278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Pivot filter UI #1278
Conversation
Co-authored-by: Mike Bender <mikebender@deephaven.io>
Co-authored-by: Mike Bender <mikebender@deephaven.io>
Co-authored-by: Mike Bender <mikebender@deephaven.io>
…lugins into pivot-plugin
…column-and-filters
mofojed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor question/nitpick. looks good overall.
| * Hook that creates a pivot metric calculator | ||
| * @returns Pivot metric calculator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say this returns a factory for creating a pivot metric calculator, since it's returning a function that creates the pivot metric calculator, not the pivot metric calculator itself.
| * @returns Pivot metric calculator | ||
| */ | ||
| export function usePivotMetricCalculator(): GetMetricCalculatorType { | ||
| return useMemo(() => args => new IrisGridPivotMetricCalculator(args), []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ... in case more parameters are added? Though I guess most likely we'll just keep one arg anyway and then keep adding to that...
| return useMemo(() => args => new IrisGridPivotMetricCalculator(args), []); | |
| return useMemo(() => (...args) => new IrisGridPivotMetricCalculator(...args), []); |
Add filter support for pivot table ColumnBy sources.
IrisGridPivotRendererandIrisGridPivotMetricCalculatorto render filter input boxes in the column header groups. Filter boxes take all available space to the left of the ColumnBy labels.IrisGridPivotModelto expose and apply filters on the underlying pivot table.